package com.zhn.evsi.controller.Evsi;

import com.zhn.evsi.common.Result;
import com.zhn.evsi.service.IEvsiCorporationService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "")
@ApiSort(value = 7)
@RestController
@RequestMapping("/Evsi/corporation")
public class EvsiCorporationController {

    @Autowired
    private IEvsiCorporationService corporationService;

    @ApiOperation("军团公开信息")
    @ApiOperationSupport(order = 1)
    @GetMapping("/publicInfo")
    public Result publicInfo(@RequestParam Integer corporationId) {
        return Result.success(corporationService.publicInfo(corporationId));
    }

    @ApiOperation("军团图标")
    @ApiOperationSupport(order = 2)
    @GetMapping("/corporationIcon")
    public Result corporationIcon(@RequestParam Integer corporationId) {
        return Result.success(corporationService.corporationIcon(corporationId));
    }

    @ApiOperation("npc军团树形结构")
    @ApiOperationSupport(order = 3)
    @GetMapping("/npcCorpTree")
    public Result npcCorpTree() {
        return Result.success(corporationService.npcCorpTree());
    }
}
